powered by
Adjacency matrix of a Bayesian network.
bnmat(dag)
A BN object, an object of class "bn".
Adjacency matrix of a Bayesian network is extracted.
The function is called from the "bnlearn" package which invokes the "Rgraphviz" package from Bioconductor and you need to install it first.
pchc, pc.skel
# NOT RUN { x <- matrix( rnorm(200 * 10, 1, 10), nrow = 200 ) a <- pchc::pchc(x) pchc::bnmat(a$dag) # }
Run the code above in your browser using DataLab